<template>
  <div id="app">
    <router-view/>
  </div>
</template>
<script>
  export default {
    name:"app",
    created() {
      window.addEventListener('beforeunload', this.beforeunloadFn())
    },
    methods:{
      beforeunloadFn(){
        this.$router.push("/home/homePage")
      }
    },
    destroyed() {
      window.removeEventListener('beforeunload', this.beforeunloadFn())
    }
  }
</script>
<style lang="scss">
  body{
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  html,body,#app{
    position:relative;
    height: 100%;
  }
  *{
    font-family: 楷体,serif;
  }
#app {
  //Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /*text-align: center;*/
  color: #2c3e50;
}
.el-submenu__icon-arrow {
  right:30px !important;
}
</style>
